package org.wang.gift.feign.config;

import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.wang.gift.feign.interceptor.DefaultOAuth2FeignRequestInterceptor;

@Configuration
public class FeignInterceptorConfig {
    @Bean
    public RequestInterceptor oAuth2RequestInterceptor() {

        return new DefaultOAuth2FeignRequestInterceptor();
    }
}